package Project;

import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * This is a cover page before starting a new game.
 * 
 * @author	Brian Wetherbee
 */
public class Story extends Menu {

    /**
     * Creates new form Story
     */
    public Story() {
        super(0);
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void initComponents() {

        story1 = new javax.swing.JLabel();
        story2 = new javax.swing.JLabel();
        story3 = new javax.swing.JLabel();
        story4 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(0, 0, 0));
        setFont(new java.awt.Font("DialogInput", 1, 18)); // NOI18N
        setPreferredSize(new java.awt.Dimension(640, 480));
        
        addKeyListener(this);
        addMouseListener(this);
        setFocusable(false);
        setVisible(false);

        story1.setFont(new java.awt.Font("DialogInput", 1, 18)); // NOI18N
        story1.setForeground(new java.awt.Color(255, 255, 255));
        story1.setText("This is where our story would go,  at least once we've");

        story2.setFont(new java.awt.Font("DialogInput", 1, 18)); // NOI18N
        story2.setForeground(new java.awt.Color(255, 255, 255));
        story2.setText("formalized everything...  Perhaps we should do that");

        story3.setFont(new java.awt.Font("DialogInput", 1, 18)); // NOI18N
        story3.setForeground(new java.awt.Color(255, 255, 255));
        story3.setText("sometime soon?");

        story4.setFont(new java.awt.Font("DialogInput", 1, 18)); // NOI18N
        story4.setForeground(new java.awt.Color(255, 255, 255));
        story4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        story4.setText("Press Enter to continue...");

       /* javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(story1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(story2, javax.swing.GroupLayout.DEFAULT_SIZE, 620, Short.MAX_VALUE)
                    .addComponent(story3, javax.swing.GroupLayout.DEFAULT_SIZE, 620, Short.MAX_VALUE)
                    .addComponent(story4, javax.swing.GroupLayout.DEFAULT_SIZE, 620, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(story1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(story2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(story3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 346, Short.MAX_VALUE)
                .addComponent(story4)
                .addContainerGap())
        );*/
    }// </editor-fold>                        

    @Override
    public void select() {
        Main.setCurrentUI(Constants.GalaxyMapNum);
    }
    
    // Variables declaration - do not modify                     
    private javax.swing.JLabel story1;
    private javax.swing.JLabel story2;
    private javax.swing.JLabel story3;
    private javax.swing.JLabel story4;
    // End of variables declaration                   
	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void keyTyped(KeyEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void keyPressed(KeyEvent e) {
		if(e.getKeyCode() == Constants.controlConfirm) {
            select();
        }
		
	}

	@Override
	public void keyReleased(KeyEvent e) {
		// TODO Auto-generated method stub
		
	}

    
}

